package animals;

public class Animal {
    double weight;
    String color;

    public Animal(double weight, String color) {
        this.weight = weight;
        this.color = color;
    }

    public void eat() {
        System.out.println("吃饭");
    }
    public void sleep() {
        System.out.println("睡觉");
    }
    public void swim() {
        System.out.println("游泳");
    }

}



